<template>
  <div>
    <el-row class="">
      <el-col :span="22">出入库记录列表</el-col>
    </el-row>
    <el-divider content-position="center"></el-divider>
    <el-row>
      <data-table
        :value="tableData"
        :total-count="totalCount"
        :table-column-attributes="tableColumnAttributes"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :width="160"
      >
      </data-table>
    </el-row>
  </div>
</template>
<script>
import baseMixin from "@/mixins/base";
import { recordPage } from "@/api/after-sale/storehouseManage/positionManage";

export default {
  name: "carInfo",
  components: {},
  props: {
    id: Number,
  },
  mixins: [
    baseMixin({
      idName: "id",
      findData: recordPage,
      dataName: ["content", "totalRecords"],
      format(res) {
        return res.map((data) => {
          return data;
        });
      },
    }),
  ],
  data() {
    return {
      tableColumnAttributes: [
        { name: "库存单号", value: "code", type: "text" },
        { name: "类型", value: "sonType", type: "text" },
        { name: "负责人", value: "userName", type: "text" },
        { name: "联系方式", value: "phone", type: "text" },
        { name: "单据日期", value: "receiptsTime", type: "text" },
        { name: "数量", value: "num", type: "text" },
        { name: "备注", value: "remark", type: "text" },
        { name: "状态", value: "status", type: "text" },
        { name: "录入时间", value: "createTime", type: "text" },
      ],
    };
  },

  methods: {},
  created() {
    this.searchOptions.id = this.id;
  },
};
</script>

<style lang="scss" scoped>
.el-table .delete-row {
  background: #f5f7fa;
  color: #ccc !important;
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 80px;
  height: 80px;
  display: block;
}
</style>
